package cn.flying.cloud.message.core.sender.event;


import cn.flying.cloud.message.bo.MsgStorageBo;
import cn.flying.cloud.message.core.enums.SendType;
import cn.flying.cloud.message.core.strategy.MessageSenderStrategy;
import cn.flying.cloud.message.model.MessageRequest;

/**
 * 消息通知类事件
 *
 * @author: admin
 * @date: 2025年03月18日 11:04
 * @version: 1.0
 */
public class MessageEvent {

    /**
     * 消息请求对象
     */
    private MessageRequest request;
    /**
     * 消息配置
     */
    private MsgStorageBo storage;
    /**
     * 发送策略
     */
    private MessageSenderStrategy messageSenderStrategy;
    /**
     * 推送类型
     */
    private SendType sendType;
    /**
     * 是否html
     */
    private boolean html;

    public MessageRequest getRequest() {
        return request;
    }

    public void setRequest(MessageRequest request) {
        this.request = request;
    }

    public MsgStorageBo getStorage() {
        return storage;
    }

    public void setStorage(MsgStorageBo storage) {
        this.storage = storage;
    }

    public MessageSenderStrategy getMessageSenderStrategy() {
        return messageSenderStrategy;
    }

    public void setMessageSenderStrategy(MessageSenderStrategy messageSenderStrategy) {
        this.messageSenderStrategy = messageSenderStrategy;
    }

    public SendType getSendType() {
        return sendType;
    }

    public void setSendType(SendType sendType) {
        this.sendType = sendType;
    }

    public boolean isHtml() {
        return html;
    }

    public void setHtml(boolean html) {
        this.html = html;
    }
}
